package online.yangcloud.common.model.business.database;

import java.util.List;

/**
 * @author zhuboyang
 * @since 2024年03月19 23:44:50
 */
public class TableInfoBusiness {

    /**
     * 数据库名
     */
    private String schemaName;

    /**
     * 数据表名
     */
    private String tableName;

    /**
     * 数据表释义
     */
    private String tableDesc;

    /**
     * 列名
     */
    private List<String> tableColumns;

    private TableInfoBusiness() {
    }

    public static TableInfoBusiness builder() {
        return new TableInfoBusiness();
    }

    public String getSchemaName() {
        return schemaName;
    }

    public TableInfoBusiness setSchemaName(String schemaName) {
        this.schemaName = schemaName;
        return this;
    }

    public String getTableName() {
        return tableName;
    }

    public TableInfoBusiness setTableName(String tableName) {
        this.tableName = tableName;
        return this;
    }

    public String getTableDesc() {
        return tableDesc;
    }

    public TableInfoBusiness setTableDesc(String tableDesc) {
        this.tableDesc = tableDesc;
        return this;
    }

    public List<String> getTableColumns() {
        return tableColumns;
    }

    public TableInfoBusiness setTableColumns(List<String> tableColumns) {
        this.tableColumns = tableColumns;
        return this;
    }

    @Override
    public String toString() {
        return "TableInfoBusiness["
                + " schemaName=" + schemaName + ","
                + " tableName=" + tableName + ","
                + " tableDesc=" + tableDesc + ","
                + " tableColumns=" + tableColumns
                + " ]";
    }
}
